
// 管理项目用户相关接口
import service from "./service";
// 用户相关请求地址
const API = {
  REGISTER_URL: '/users/register',
  LOGIN_URL: '/users/login',
  GET_USER: '/user',
  GET_SELLER: '/seller/1'
}

export const registerApi = (data) => service.post(API.REGISTER_URL, data)
//userAccout\userPassword\userPhone
export const loginApi = (data) => service.post(API.LOGIN_URL, data)
export const getUsersApi = (data) => service.get(API.GET_USER, data)
export const updateUserApi = (data) => service.put(API.GET_USER, data)
export const deleteUserApi = (id) => service.delete(API.GET_USER + `/${id}`)
export const getSellerInfo = (id) => service.get(API.GET_SELLER)